import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);
//引入模块
import app from "./modules/app";
import user from "./modules/user";
import goods from "./modules/goods";
import permission from "./modules/permission";
//引入getters文件
import getters from "./getters";

export default new Vuex.Store({
	getters,
	// 注册模块
	modules: {
		app,
		user,
		goods,
		permission,
	},
});
